package com.yu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.common.utils.PageUtils;
import com.yu.gulimall.product.entity.CategoryEntity;
import com.yu.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author yu
 * @email yu@gmail.com
 * @date 2024-02-27 14:44:07
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> list);

    void updateWithSort(CategoryEntity[] categorys);

    void updateDetail(CategoryEntity category);

    Map<String, List<Catelog2Vo>> getCatalogJson();

    List<CategoryEntity> getLevel1Categorys();

}

